var ListPanel = function(divName,focusClassName) {
		this.divName=divName;
		this.focusClassName = focusClassName;
	};
ListPanel.prototype = {
	// 属性定义
	defaultPanelNum: 1,
    perClassName: "",
    currentPanelNum: 1,

	change: function(num){
		this.currentPanelNum=num;
		if (num!=this.defaultPanelNum){
			if (changeListItem8179!=null){
				changeListItem8179.perPanelCode="";
			}
			var currentClassName=document.getElementById(this.divName+num).className;
			if (currentClassName!=""){
				currentClassName=" "+currentClassName;
			}
			document.getElementById(this.divName+num).className=this.focusClassName+currentClassName;
			document.getElementById(this.divName+this.defaultPanelNum).className=this.perClassName;
			this.perClassName=currentClassName;
			this.defaultPanelNum=num;
		}	
	}
};


var ListItem = function() {};
ListItem.prototype = {
	// 属性定义
	perPanelNum: 1,
	perPanelCode: "",

	change: function(code,num){
		var divName=code+"_infoItem";
		if (this.perPanelCode!=code){
			this.perPanelNum=1;
			this.perPanelCode=code;
		}
		if (num!=this.perPanelNum){
			if (document.getElementById(divName+num)){
				document.getElementById(divName+num).style.display="";
			}
			if (document.getElementById(divName+this.perPanelNum)){
				document.getElementById(divName+this.perPanelNum).style.display="none";
			}
			this.perPanelNum=num;
		}	
	}
};

var changeListItem8179=new ListItem();
function changeInfo(code,id){
	changeListItem8179.change(code,id);
}